(function(mod) {
    if (typeof exports == "object" && typeof module == "object") // CommonJS
      mod(require("/assets/static/javascript/lucidity.note.app.v1.0.0.js"));
    else if (typeof define == "function" && define.amd) // AMD
      define(["/assets/static/javascript/lucidity.note.app.v1.0.0.js"], mod);
    else // Plain browser env
      mod(LucidityNoteApp);
}) (function(LucidityNoteApp) {
    "use strict";

    LucidityNoteApp.HeaderBar = {
      /**
       * 处理菜单点击事件
       * @param {json} event 
       */
      handleMenuSelectEvt: (event) => {
        var id = event.key;
        var param = {
          mode: null,
          dialog: {
            router: null
          },
        };

        switch(id) {
          case "NewFile": break;
          case "SaveFile": break;
          case "SaveAllFile": break;
          case "Notebook": 
            param.mode = 'dialog';
            param.dialog.router = LucidityNoteApp.VIEWS.notebook;
            param.dialog.title = "笔记本信息";
            param.dialog.width = '40%';
            break;
        }

        return param;
      }
    }
});